FUNCTION

decimal.from_text

purestatic function from_text(value: text): decimal

Parse a signed base-10 text representation of a real number.

If the encoded value has more decimal places than are supported, it is rounded to the nearest supported value.

Parameters

  • value — the text to parse

Throws

  • exception — when - the text representation is ill-formed - the magnitude of the encoded value is larger than decimal.MAX_VALUE

Since

0.9.1

© 2026 Chromia